1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */ 
28 
29 module derelict.purple.desktopitem;
30 
31 import derelict.glib.gtypes;
32 import derelict.glib.glibconfig;
33 
34 extern (C):
35 
36 alias _Anonymous_0 PurpleDesktopItemType;
37 alias _PurpleDesktopItem PurpleDesktopItem;
38 
39 enum _Anonymous_0
40 {
41 	PURPLE_DESKTOP_ITEM_TYPE_NULL = 0,
42 	PURPLE_DESKTOP_ITEM_TYPE_OTHER = 1,
43 	PURPLE_DESKTOP_ITEM_TYPE_APPLICATION = 2,
44 	PURPLE_DESKTOP_ITEM_TYPE_LINK = 3,
45 	PURPLE_DESKTOP_ITEM_TYPE_FSDEVICE = 4,
46 	PURPLE_DESKTOP_ITEM_TYPE_MIME_TYPE = 5,
47 	PURPLE_DESKTOP_ITEM_TYPE_DIRECTORY = 6,
48 	PURPLE_DESKTOP_ITEM_TYPE_SERVICE = 7,
49 	PURPLE_DESKTOP_ITEM_TYPE_SERVICE_TYPE = 8
50 }
51 
52 struct _PurpleDesktopItem;
53 
54 version(Derelict_Link_Static)
55 {
56     extern( C ) nothrow 
57     {
58 	    GType purple_desktop_item_get_type();
59         PurpleDesktopItem* purple_desktop_item_new_from_file(const(char)* filename);
60         PurpleDesktopItemType purple_desktop_item_get_entry_type(const(PurpleDesktopItem)* item);
61         const(char)* purple_desktop_item_get_string(const(PurpleDesktopItem)* item, const(char)* attr);
62         PurpleDesktopItem* purple_desktop_item_copy(const(PurpleDesktopItem)* item);
63         void purple_desktop_item_unref(PurpleDesktopItem* item);
64     }
65 }
66 else
67 {
68     extern( C ) nothrow 
69     {
70 	    alias da_purple_desktop_item_get_type = GType function();																
71         alias da_purple_desktop_item_new_from_file = PurpleDesktopItem* function(const(char)* filename);						
72         alias da_purple_desktop_item_get_entry_type = PurpleDesktopItemType function(const(PurpleDesktopItem)* item);			
73         alias da_purple_desktop_item_get_string = const(char)* function(const(PurpleDesktopItem)* item, const(char)* attr);		
74         alias da_purple_desktop_item_copy = PurpleDesktopItem* function(const(PurpleDesktopItem)* item);						
75         alias da_purple_desktop_item_unref = void function(PurpleDesktopItem* item);				
76     }
77 
78     __gshared
79     {
80 	    da_purple_desktop_item_get_type purple_desktop_item_get_type;
81 	    da_purple_desktop_item_new_from_file purple_desktop_item_new_from_file;
82 	    da_purple_desktop_item_get_entry_type purple_desktop_item_get_entry_type;
83 	    da_purple_desktop_item_get_string purple_desktop_item_get_string;
84 	    da_purple_desktop_item_copy purple_desktop_item_copy;
85 	    da_purple_desktop_item_unref purple_desktop_item_unref;
86     }
87 }